package cn.csc.module.pay.controller.admin.order.vo;

import cn.csc.framework.pay.core.client.exception.PayException;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

@ApiModel("管理后台 - 支付订单提交 Response VO")
@Data
public class PayOrderSubmitRespVO {

    @ApiModelProperty(value = "展示模式", required = true, example = "url") // 参见 PayDisplayModeEnum 枚举
    private String displayMode;

    @ApiModelProperty(value = "展示内容", required = true)
    private String displayContent;

    @ApiModelProperty(value = "商户订单号", required = true)
    private String merchantOrderNo;

    @ApiModelProperty(value = "交易单号", required = true)
    private String tradeNo;

    /**
     * 调用渠道的错误码
     *
     * 注意：这里返回的是业务异常，而是不系统异常。
     * 如果是系统异常，则会抛出 {@link PayException}
     */
    private String channelErrorCode;
    /**
     * 调用渠道报错时，错误信息
     */
    private String channelErrorMsg;

}
